package com.yiyi.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yiyi.user.mapper.SysPriceMapper;
import com.yiyi.user.domain.SysPrice;
import com.yiyi.user.service.ISysPriceService;

/**
 * 费用价格Service业务层处理
 * 
 * @author yiyi
 * @date 2024-09-26
 */
@Service
public class SysPriceServiceImpl implements ISysPriceService 
{
    @Autowired
    private SysPriceMapper sysPriceMapper;

    /**
     * 查询费用价格
     * 
     * @param id 费用价格主键
     * @return 费用价格
     */
    @Override
    public SysPrice selectSysPriceById(Long id)
    {
        return sysPriceMapper.selectSysPriceById(id);
    }

    /**
     * 查询费用价格列表
     * 
     * @param sysPrice 费用价格
     * @return 费用价格
     */
    @Override
    public List<SysPrice> selectSysPriceList(SysPrice sysPrice)
    {
        return sysPriceMapper.selectSysPriceList(sysPrice);
    }

    /**
     * 新增费用价格
     * 
     * @param sysPrice 费用价格
     * @return 结果
     */
    @Override
    public int insertSysPrice(SysPrice sysPrice)
    {
        return sysPriceMapper.insertSysPrice(sysPrice);
    }

    /**
     * 修改费用价格
     * 
     * @param sysPrice 费用价格
     * @return 结果
     */
    @Override
    public int updateSysPrice(SysPrice sysPrice)
    {
        return sysPriceMapper.updateSysPrice(sysPrice);
    }

    /**
     * 批量删除费用价格
     * 
     * @param ids 需要删除的费用价格主键
     * @return 结果
     */
    @Override
    public int deleteSysPriceByIds(Long[] ids)
    {
        return sysPriceMapper.deleteSysPriceByIds(ids);
    }

    /**
     * 删除费用价格信息
     * 
     * @param id 费用价格主键
     * @return 结果
     */
    @Override
    public int deleteSysPriceById(Long id)
    {
        return sysPriceMapper.deleteSysPriceById(id);
    }
}
